<include path="header" />

<div class="m-title">
	<ul>
    	<li>资料修改</li>
        <li><a href="/setting/name">真实姓名</a></li>
        <li><a href="/setting/password">密码修改</a></li>
        <li><a href="/setting/avatar" class="select">头像上传</a></li>
        <li><a href="/setting/mail">邮箱设置</a></li>
        <li><a href="/setting/theme">主题设置</a></li>
		<li><a href="/setting/group">工作组</a></li>
        <li></li>
    </ul>
</div>
<div class="m-body">
	<div class="avatar-upload">
    	<div class="left"><img id="avatar-img" src="<?=get_avatar($user['user_id'])?>?<?=rand(0,1000)?>" width="55" /></div>
        <div class="left">
        	<form action="/setting/avatar" method="post" enctype="multipart/form-data">
            <input type="file" name="file" /><br />
            <p class="desc">支持 jpg, gif, png 格式的图片，不要超过 2MB。建议图片尺寸大于 100×100。</p>
            <input type="submit" class="button" value="上传头像" />
            </form>
        </div>
    </div>
</div>

<include path="footer" />